<script setup lang="ts">
import { Button as VantButton } from 'vant'
// import { RouterLink, RouterView } from 'vue-router'
import { useUserStore } from './stores/modules/user.ts'
const store = useUserStore()
</script>

<template>
  <div>
    app
    {{ store.user }}
    <vant-button
      type="primary"
      @click="
        store.setUser({
          id: '1',
          avatar: '1',
          token: '1',
          mobile: '1',
          account: '1'
        })
      "
      >登录</vant-button
    >
    <vant-button type="primary" @click="store.delUser()">退出</vant-button>
  </div>

  <RouterView />
</template>

<style lang="scss" scoped></style>
